<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom" xmlns:lc="http://layeredcontent.org/2008">
<?php foreach ($this->pages as $page): ?>
	<atom:entry>
		<atom:title><?php /*echo $page['contents']['title']*/ ?></atom:title>
		<atom:link rel="edit" href="http://<?php echo preg_replace('~/.+$~', '', $page->location) ?>/atom/pages/<?php echo $page->location ?>"/>
		<atom:id><?php echo $page->id ?></atom:id>
		<atom:author><?php echo $page->author ?></atom:author>
		<atom:updated><?php echo date('c', strtotime($page->modified)) ?></atom:updated>
		<atom:summary/>
		<lc:location><?php echo $page->location ?></lc:location>
		<lc:name><?php echo $page->name ?></lc:name>
	</atom:entry>
<?php endforeach ?>
</atom:feed>
